import request from '@/utils/request'

// 查询老师日报列表
export function listNewspaper(query) {
  return request({
    url: '/teacher/newspaper/list',
    method: 'get',
    params: query
  })
}

// 查询老师日报详细
export function getNewspaper(id) {
  return request({
    url: '/teacher/newspaper/' + id,
    method: 'get'
  })
}

// 新增老师日报
export function addNewspaper(data) {
  return request({
    url: '/teacher/newspaper',
    method: 'post',
    data: data
  })
}

// 修改老师日报
export function updateNewspaper(data) {
  return request({
    url: '/teacher/newspaper',
    method: 'put',
    data: data
  })
}

// 删除老师日报
export function delNewspaper(id) {
  return request({
    url: '/teacher/newspaper/' + id,
    method: 'delete'
  })
}
// 批量添加日报
export function batchAddTrace(form) {
  return request({
    url: '/teacher/newspaper/batchAdd',
    method: 'post',
    data: form
  })
}
export function dailyReminder() {
  return request({
    url: '/teacher/newspaper/dailyReminder',
    method: 'get',
  })
}
